import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick' // 解决点击时间300毫秒延迟的问题 yarn add fastclick
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'babel-polyfill' // 解决低版本手机不支持 es6 promise
import store from './store'

import 'styles/reset.css'
import 'styles/border.css' // 解决移动端 border 边框一像素问题
import 'styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
fastClick.attach(document.body) // 把点击延迟300毫秒的事件绑定到body上
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
